/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


import java.io.IOException;
import java.io.PrintWriter;
import java.lang.String;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

/**
 *
 * @author Pessoal
 */
public class grava_dados_login extends HttpServlet {
    private HttpSession HttpSessionsession;
   
    /** 
     * Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
     * @param request servlet request
     * @param response servlet response
     * @throws ServletException if a servlet-specific error occurs
     * @throws IOException if an I/O error occurs
     */
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
        response.setContentType("text/html;charset=UTF-8");
        PrintWriter out = response.getWriter();
        try {
           String enviar_dados  = (String)request.getParameter("enviar_dados");//botão enviar dados do form cadastro de usuarios
           HttpSessionsession = request.getSession();
             if( enviar_dados.equals("ok")){
                 String usuario1= (request.getParameter("usuario1"));
                 String confirma_senha = (request.getParameter("confirma_senha"));
                 String email = (request.getParameter("email"));
             }
           request.getRequestDispatcher("indexmain.jsp").forward(request, response);
        } finally {
            out.close();
        }
   
    }
}